package com.company.creational.factory_pattern.factory_method_pattern.factory;

import com.company.creational.factory_pattern.factory_method_pattern.product.DatabaseLogger;
import com.company.creational.factory_pattern.factory_method_pattern.product.Logger;

/**
 * @ClassName DatabaeseLoggerFactory
 * @Author tiezheng.han
 * @Date 2020/8/26 18:27
 **/
public class DatabaeseLoggerFactory implements LoggerFactory {
    @Override
    public Logger createLogger() {
        // 链接数据库
        // 创建数据库日志记录器对象
        Logger logger = new DatabaseLogger();
        return logger;
    }
}
